|
PHY MAKE RIGID BODY DYNAMIC BOX
Create a new dynamic rigid body box that is attached to an object.
PHY MAKE RIGID BODY DYNAMIC BOX ID
PHY MAKE RIGID BODY DYNAMIC BOX ID, material
ID
Integer
the identification number of the 3D object that you want to be represented by a dynamic box in the simulation
material
Integer
this parameter is optional, a material can be specified if required upon creation of a dynamic rigid body box, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its res
This command will simulate the object as a box within the physics simulation. As an example imagine a character object on screen. When creating a rigid body box for this object the box will fit around this character from its head to its feet. This box is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a dynamic rigid body box it will be affected by forces such as gravity etc. Simulating objects within the scene as simplistic shapes allows for much faster processing and it is preferable to have objects represented by rigid body boxes and spheres where possible.
After creating a rigid body box it will be entered into the simulation for processing. The physics simulation will then take over control of the object that was attached to the rigid body box. You will not be able to move this object using commands such as position object. Note that the size of the box is calculated based on the size of the specified object.
No example code is provided for this command
|